package com.fang.mmy.items.feign_handler;

import com.fang.mmy.entity.ResponseResult;
import com.fang.mmy.entity.User;
import com.fang.mmy.items.feign.UserFeign;
import org.springframework.stereotype.Component;

/**
 * @ClassName UserFeignHandler
 * @Author kebukeyi
 * @Date 2022/8/7 11:02
 * @Description
 * @Version 1.0.0
 */
@Component
public class UserFeignHandler implements UserFeign {

    @Override
    public ResponseResult<User> getUserNo(Long userId) {
        String fallback = "当前人数过多,休息一会再试";
        return ResponseResult.<User>builder().code(400).msg(fallback).success(false).build();
    }

}
